<template>
	<view class="my-container">
		<view class="user-info" v-if="JSON.stringify(this.userInfo) !== '{}'">
			<my-userinfo></my-userinfo>
		</view>
		<view class="login" v-else>
			<my-login></my-login>
		</view>
	</view>
	
</template>

<script>
	import {mapState} from 'vuex'
	import badgeMix from '@/mixins/tabbar-badge.js'
	export default {
		mixins: [badgeMix],
		data() {
			return {
				
			}
		},
		computed:{
			...mapState('user',['token','userInfo'])
		}
	}
</script>

<style lang="scss">
	.my-container{
		height: 100%;
	}
</style>
